﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Cms.Utilities
{
    public class Html
    {
        public static string Encode(string s)
        {
            s = HttpUtility.HtmlEncode(s)
                .Replace("&#246;", "&ouml;")
                .Replace("&#214;", "&Ouml;")
                .Replace("&#228;", "&auml;")
                .Replace("&#196;", "&Auml;")
                .Replace("&#229;", "&aring;")
                .Replace("&#197;", "&Aring;");
            return s;
        }
    }
}
